Optimal. Leaf size=102 \[ \frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}+e^3 \left (-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )\right )-e^3 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.162587, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 9, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {852, 1807, 811, 844, 217, 203, 266, 63, 208} \[ \frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}+e^3 \left (-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )\right )-e^3 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 852
Rule 1807
Rule 811
Rule 844
Rule 217
Rule 203
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\left (d^2-e^2 x^2\right )^{5/2}}{x^4 (d+e x)^2} \, dx &=\int \frac{(d-e x)^2 \sqrt{d^2-e^2 x^2}}{x^4} \, dx\\ &=-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}-\frac{\int \frac{\left (6 d^3 e-3 d^2 e^2 x\right ) \sqrt{d^2-e^2 x^2}}{x^3} \, dx}{3 d^2}\\ &=\frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}+\frac{\int \frac{12 d^5 e^3-12 d^4 e^4 x}{x \sqrt{d^2-e^2 x^2}} \, dx}{12 d^4}\\ &=\frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}+\left (d e^3\right ) \int \frac{1}{x \sqrt{d^2-e^2 x^2}} \, dx-e^4 \int \frac{1}{\sqrt{d^2-e^2 x^2}} \, dx\\ &=\frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}+\frac{1}{2} \left (d e^3\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{d^2-e^2 x}} \, dx,x,x^2\right )-e^4 \operatorname{Subst}\left (\int \frac{1}{1+e^2 x^2} \, dx,x,\frac{x}{\sqrt{d^2-e^2 x^2}}\right )\\ &=\frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}-e^3 \tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-(d e) \operatorname{Subst}\left (\int \frac{1}{\frac{d^2}{e^2}-\frac{x^2}{e^2}} \, dx,x,\sqrt{d^2-e^2 x^2}\right )\\ &=\frac{e (d-e x) \sqrt{d^2-e^2 x^2}}{x^2}-\frac{\left (d^2-e^2 x^2\right )^{3/2}}{3 x^3}-e^3 \tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )-e^3 \tanh ^{-1}\left (\frac{\sqrt{d^2-e^2 x^2}}{d}\right )\\ \end{align*}
Mathematica [A] time = 0.187797, size = 96, normalized size = 0.94 \[ -\frac{\sqrt{d^2-e^2 x^2} \left (d^2-3 d e x+2 e^2 x^2\right )}{3 x^3}-e^3 \log \left (\sqrt{d^2-e^2 x^2}+d\right )+e^3 \left (-\tan ^{-1}\left (\frac{e x}{\sqrt{d^2-e^2 x^2}}\right )\right )+e^3 \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.076, size = 479, normalized size = 4.7 \begin{align*} -{\frac{5\,{e}^{2}}{3\,{d}^{6}x} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{7}{2}}}}-{\frac{5\,{e}^{4}x}{3\,{d}^{6}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{5}{2}}}}-{\frac{25\,{e}^{4}x}{12\,{d}^{4}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{3}{2}}}}-{\frac{25\,{e}^{4}x}{8\,{d}^{2}}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}+{\frac{17\,{e}^{4}x}{12\,{d}^{4}} \left ( - \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) \right ) ^{{\frac{3}{2}}}}+{\frac{17\,{e}^{4}x}{8\,{d}^{2}}\sqrt{- \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) }}-{d{e}^{3}\ln \left ({\frac{1}{x} \left ( 2\,{d}^{2}+2\,\sqrt{{d}^{2}}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}} \right ) } \right ){\frac{1}{\sqrt{{d}^{2}}}}}+{\frac{e}{{d}^{5}{x}^{2}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{7}{2}}}}+{\frac{e}{3\,{d}^{5}} \left ( - \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) \right ) ^{{\frac{7}{2}}} \left ({\frac{d}{e}}+x \right ) ^{-2}}+{\frac{17\,{e}^{3}}{15\,{d}^{5}} \left ( - \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) \right ) ^{{\frac{5}{2}}}}+{\frac{17\,{e}^{4}}{8}\arctan \left ({x\sqrt{{e}^{2}}{\frac{1}{\sqrt{- \left ({\frac{d}{e}}+x \right ) ^{2}{e}^{2}+2\,de \left ({\frac{d}{e}}+x \right ) }}}} \right ){\frac{1}{\sqrt{{e}^{2}}}}}-{\frac{1}{3\,{d}^{4}{x}^{3}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{7}{2}}}}-{\frac{25\,{e}^{4}}{8}\arctan \left ({x\sqrt{{e}^{2}}{\frac{1}{\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}}} \right ){\frac{1}{\sqrt{{e}^{2}}}}}+{\frac{{e}^{3}}{3\,{d}^{3}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{3}{2}}}}+{\frac{{e}^{3}}{d}\sqrt{-{x}^{2}{e}^{2}+{d}^{2}}}+{\frac{{e}^{3}}{5\,{d}^{5}} \left ( -{x}^{2}{e}^{2}+{d}^{2} \right ) ^{{\frac{5}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60153, size = 217, normalized size = 2.13 \begin{align*} \frac{6 \, e^{3} x^{3} \arctan \left (-\frac{d - \sqrt{-e^{2} x^{2} + d^{2}}}{e x}\right ) + 3 \, e^{3} x^{3} \log \left (-\frac{d - \sqrt{-e^{2} x^{2} + d^{2}}}{x}\right ) -{\left (2 \, e^{2} x^{2} - 3 \, d e x + d^{2}\right )} \sqrt{-e^{2} x^{2} + d^{2}}}{3 \, x^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 8.45791, size = 347, normalized size = 3.4 \begin{align*} d^{2} \left (\begin{cases} - \frac{e \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}}{3 x^{2}} + \frac{e^{3} \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}}{3 d^{2}} & \text{for}\: \frac{\left |{d^{2}}\right |}{\left |{e^{2}}\right | \left |{x^{2}}\right |} > 1 \\- \frac{i e \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}}{3 x^{2}} + \frac{i e^{3} \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}}{3 d^{2}} & \text{otherwise} \end{cases}\right ) - 2 d e \left (\begin{cases} - \frac{d^{2}}{2 e x^{3} \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}} + \frac{e}{2 x \sqrt{\frac{d^{2}}{e^{2} x^{2}} - 1}} + \frac{e^{2} \operatorname{acosh}{\left (\frac{d}{e x} \right )}}{2 d} & \text{for}\: \frac{\left |{d^{2}}\right |}{\left |{e^{2}}\right | \left |{x^{2}}\right |} > 1 \\- \frac{i e \sqrt{- \frac{d^{2}}{e^{2} x^{2}} + 1}}{2 x} - \frac{i e^{2} \operatorname{asin}{\left (\frac{d}{e x} \right )}}{2 d} & \text{otherwise} \end{cases}\right ) + e^{2} \left (\begin{cases} \frac{i d}{x \sqrt{-1 + \frac{e^{2} x^{2}}{d^{2}}}} + i e \operatorname{acosh}{\left (\frac{e x}{d} \right )} - \frac{i e^{2} x}{d \sqrt{-1 + \frac{e^{2} x^{2}}{d^{2}}}} & \text{for}\: \frac{\left |{e^{2} x^{2}}\right |}{\left |{d^{2}}\right |} > 1 \\- \frac{d}{x \sqrt{1 - \frac{e^{2} x^{2}}{d^{2}}}} - e \operatorname{asin}{\left (\frac{e x}{d} \right )} + \frac{e^{2} x}{d \sqrt{1 - \frac{e^{2} x^{2}}{d^{2}}}} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]